﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace YiSha.Admin.WebApi.Model
{
    public class HeWeather
    {
        public List<HeWeather6> HeWeather6 { get; set; }
    }

    public class HeWeather6
    {
        public basic basic { get; set; }
        public grid_now grid_now { get; set; }
        public update update { get; set; }
        public string status { get; set; }
    }

    public class basic
    {
        /// <summary>
        /// 该地区／城市所属行政区域
        /// </summary>
        public string admin_area { get; set; }

        /// <summary>
        /// 该地区／城市所属国家名称
        /// </summary>
        public string cnty { get; set; }

        /// <summary>
        /// 地区／城市纬度
        /// </summary>
        public string lat { get; set; }

        /// <summary>
        /// 地区／城市经度
        /// </summary>
        public string lon { get; set; }

        /// <summary>
        /// 该地区／城市的上级城市
        /// </summary>
        public string parent_city { get; set; }

        /// <summary>
        /// 该地区／城市所在时区
        /// </summary>
        public string tz { get; set; }
    }

    public class grid_now
    {
        /// <summary>
        /// 天气状况代码
        /// </summary>
        public string cond_code { get; set; }

        /// <summary>
        /// 天气状况
        /// </summary>
        public string cond_txt { get; set; }

        /// <summary>
        /// 相对湿度
        /// </summary>
        public string hum { get; set; }

        /// <summary>
        /// 1小时降水量
        /// </summary>
        public string pcpn { get; set; }

        /// <summary>
        /// 10分钟降水量
        /// </summary>
        public string pcpn_10m { get; set; }

        /// <summary>
        /// 大气压强
        /// </summary>
        public string pres { get; set; }

        /// <summary>
        /// 温度
        /// </summary>
        public string tmp { get; set; }

        /// <summary>
        /// 风向
        /// </summary>
        public string wind_dir { get; set; }

        /// <summary>
        /// 风力
        /// </summary>
        public string wind_sc { get; set; }
    }

    public class update
    {
        /// <summary>
        /// 当地时间，24小时制，格式yyyy-MM-dd HH:mm
        /// </summary>
        public string loc { get; set; }

        /// <summary>
        /// UTC时间，24小时制，格式yyyy-MM-dd HH:mm
        /// </summary>
        public string utc { get; set; }
    }
}
